#pragma once
class InputManager
{
private:
	bool m_KeyDown[256];
	int m_PointerState;
	static InputManager* s_Instance;
public:
	int m_PointerX;
	int m_PointerY;
	static InputManager* GetInstance();
	InputManager();
	~InputManager(); 

	void OnKey(int keyCode, bool isKeyDown);
	void OnMouse(int type, int x, int y);

	bool IsKeyDown(int keyCode);
	bool IsPointerDown();
	bool IsPointerDrag();
	bool IsPointerInRect(bool &down, int x, int y, int w, int h);
};

